package com.jvm.coline.part5;

import java.nio.ByteBuffer;

/**
 * 直接内存溢出:Direct buffer memory
 * 配合启动参数 -XX:MaxDirectMemorySize=10m
 */
public class DirectOom {
    public static void main(String[] arg0) {
        ByteBuffer byteBuffer = ByteBuffer.allocateDirect(12 * 1024 * 1024);
    }
}
